package com.example.entity;

import java.util.Map;

import com.example.base.MessageBase;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("xml")
public class NewsEntity extends MessageBase{
	
	private String ArticleCount;
	private Articles Articles;
	public String getArticleCount() {
		return ArticleCount;
	}
	public void setArticleCount(String articleCount) {
		ArticleCount = articleCount;
	}
	public Articles getArticles() {
		return Articles;
	}
	public void setArticles(Articles articles) {
		Articles = articles;
	}
	/**
	 * 
	 * @param map
	 * @param ArticleCount 文本
	 * @param Articles
	 * @param item
	 */
	public NewsEntity(Map<String, String> map,String ArticleCount,Articles Articles,item item) {
		super(map);
		this.setMsgType("news");
		this.ArticleCount = ArticleCount;
		item item1 = new item(item.getTitle(), item.getDescription(), item.getPicUrl(), item.getUrl());
		Articles a = new Articles(item1);
		this.Articles = a;
	}
}
